function chromeframeInstalled()
{
    var ua = navigator.userAgent.toLowerCase();
    if (ua.indexOf("chromeframe") >= 0 || ua.indexOf("x-clock") >= 0) {
        return true;
    }
    
    if (typeof window['ActiveXObject'] != 'undefined')
    {
        try 
        {
            var obj = new ActiveXObject('ChromeTab.ChromeFrame');
            if (obj) {
                return true;
            }
        } catch(e) {
            return false;
        }
    }
}
